package com.test.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.bumptech.glide.request.RequestOptions;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        RequestOptions options = new RequestOptions().transform(new CenterCrop());
//        new RoundedCorners(39)
        ImageView imageView = findViewById(R.id.imageView);
        Glide.with(this)
                .load("https://c5-appstore.nubia.com/data/upload/picture/2024/4/28/1714292297151/1714292297.jpg")
                .apply(options)
                .into(imageView);
    }
}